<template>
  <div id="main">
    <Header />
    <Nav active="3-2" />
    <div class="market">
      <img src="@/assets/images/image_3.png">
      <div class="market_main" type="card">
        <el-tabs v-model="activeName" @tab-click="handleClick">
          <el-tab-pane label="试点城市细分行业数字化服务资源库服务商" name="first">
            <el-form @submit.native.prevent label-width="auto">
              <div class="market_request">
                <div class="market_request_left">
                  <el-form-item label="产品名称">
                    <el-input style="width: 250px;" v-model="query.tableField107_productName"
                      placeholder="请输入产品名称" clearable></el-input>
                  </el-form-item>
                  <el-form-item label="服务行业">
                    <JnpfSelect v-model="query.tableField107_serviceIndustry" placeholder="请选择"
                      clearable :options="tableField107_serviceIndustryOptions"
                      :props="tableField107_serviceIndustryProps" multiple>
                    </JnpfSelect>
                  </el-form-item>
                  <el-form-item label="产品类别(大类)">
                    <JnpfSelect v-model="query.tableField107_productType" placeholder="请选择"
                      clearable :options="tableField107_productTypeOptions"
                      :props="tableField107_productTypeProps" multiple>
                    </JnpfSelect>
                  </el-form-item>
                </div>
                <div>
                  <el-button type="primary" @click="search()">查询</el-button>
                  <el-button @click="reset()">重置</el-button>
                </div>
                <!-- <el-button type="primary" icon="el-icon-search" @click="search()">查询</el-button>
              <el-button icon="el-icon-refresh-right" @click="reset()">重置</el-button> -->
              </div>
            </el-form>
            <div class="market_content">
              <!-- <div class="JNPF-common-head">
            <div>
            </div>
            <div class="JNPF-common-head-right">
              <el-tooltip content="高级查询" placement="top" v-if="true">
                <el-link icon="icon-ym icon-ym-filter JNPF-common-head-icon" :underline="false"
                  @click="openSuperQuery()" />
              </el-tooltip>
              <el-tooltip effect="dark" :content="$t('common.refresh')" placement="top">
                <el-link icon="icon-ym icon-ym-Refresh JNPF-common-head-icon" :underline="false"
                  @click="initData()" />
              </el-tooltip>
            </div>
          </div> -->
              <JNPF-table border v-loading="listLoading" :data="list" @sort-change='sortChange'
                :span-method="arraySpanMethod">
                <el-table-column prop="enterpriseName" label="单位名称" align="left"></el-table-column>
                <el-table-column prop="enterpriseCreditCode" label="信用代码"
                  align="left"></el-table-column>
                <el-table-column prop="enterpriseAddress" label="单位地址"
                  align="left"></el-table-column>
                <el-table-column prop="enterpriseStart" label="成立时间" align="left"></el-table-column>
                <el-table-column prop="registeredCapital" label="注册资本" align="left">
                  <template slot-scope="scope" v-if="scope.row.registeredCapital">
                    <JnpfNumber v-model="scope.row.registeredCapital" :thousands="false" />
                  </template>
                </el-table-column>
                <!--                <el-table-column prop="contactPerson" label="联系人" align="left"></el-table-column>
                              <el-table-column prop="contactInformation" label="联系方式" align="left"></el-table-column>
                              <el-table-column prop="email" label="电子邮箱" align="left"></el-table-column>-->
                <el-table-column prop="tableField107" label="产品信息" align="center">
                  <el-table-column prop="tableField107-child-first" width="1px"
                    label-class-name="table-child-first">
                    <template slot-scope="scope" v-if="!scope.row.top">
                      <div class="child-table-column">
                        <template v-if="!scope.row.tableField107Expand">
                          <tr v-for="(item, index) in scope.row.tableField107.slice(0, 2)"
                            class="child-table__row" :key="index">
                            <td class="td-child-first">
                              <div class="cell"></div>
                            </td>
                            <td class="td-flex-1">
                              <div class="cell">
                                {{ item.productName }}
                              </div>
                            </td>
                            <td class="td-flex-1">
                              <div class="cell">
                                {{ item.serviceIndustry }}
                              </div>
                            </td>
                            <td class="td-flex-1">
                              <div class="cell">
                                {{ item.productType }}
                              </div>
                            </td>
                          </tr>
                        </template>
                        <template v-if="scope.row.tableField107Expand">
                          <tr v-for="(item, index) in scope.row.tableField107"
                            class="child-table__row" :key="index">
                            <td class="td-child-first">
                              <div class="cell"></div>
                            </td>
                            <td class="td-flex-1">
                              <div class="cell">
                                {{ item.productName }}
                              </div>
                            </td>
                            <td class="td-flex-1">
                              <div class="cell">
                                {{ item.serviceIndustry }}
                              </div>
                            </td>
                            <td class="td-flex-1">
                              <div class="cell">
                                {{ item.productType }}
                              </div>
                            </td>
                          </tr>
                        </template>
                        <div class="expand-more-btn" v-if="scope.row.tableField107.length > 2">
                          <el-button v-if="scope.row.tableField107Expand" type="text"
                            @click="scope.row.tableField107Expand = !scope.row.tableField107Expand">隐藏部分
                          </el-button>
                          <el-button v-if="!scope.row.tableField107Expand" type="text"
                            @click="scope.row.tableField107Expand = !scope.row.tableField107Expand">加载更多
                          </el-button>
                        </div>
                      </div>
                    </template>
                  </el-table-column>
                  <el-table-column prop="tableField107-productName" label="产品名称" width="150" />
                  <el-table-column prop="tableField107-serviceIndustry" label="服务行业" width="150" />
                  <el-table-column prop="tableField107-productType" label="产品类别(大类)" width="150" />
                </el-table-column>
                <el-table-column label="操作" align="center" width="100">
                  <template slot-scope="scope">
                    <el-button type="text" @click="goDetail(scope.row.id)">查看详情
                    </el-button>
                  </template>
                </el-table-column>
              </JNPF-table>
              <div class="general_pagination">
                <span class="total">{{ `共 ${total} 项数据` }}</span>
                <pagination layout="sizes, prev, pager, next, jumper" :total="total"
                  :page.sync="listQuery.currentPage" :limit.sync="listQuery.pageSize"
                  :page-sizes="[50]" @pagination="initData" />
              </div>
            </div>
          </el-tab-pane>
          <el-tab-pane label="试点城市细分行业数字化服务后备资源库服务商" name="second">
            <el-form @submit.native.prevent label-width="auto">
              <div class="market_request">
                <div class="market_request_left">
                  <el-form-item label="产品名称">
                    <el-input style="width: 250px;" v-model="query.tableField107_productName"
                      placeholder="请输入产品名称" clearable></el-input>
                  </el-form-item>
                  <el-form-item label="服务行业">
                    <JnpfSelect v-model="query.tableField107_serviceIndustry" placeholder="请选择"
                      clearable :options="tableField107_serviceIndustryOptions"
                      :props="tableField107_serviceIndustryProps" multiple>
                    </JnpfSelect>
                  </el-form-item>
                  <el-form-item label="产品类别(大类)">
                    <JnpfSelect v-model="query.tableField107_productType" placeholder="请选择"
                      clearable :options="tableField107_productTypeOptions"
                      :props="tableField107_productTypeProps" multiple>
                    </JnpfSelect>
                  </el-form-item>
                </div>
                <div>
                  <el-button type="primary" @click="search()">查询</el-button>
                  <el-button @click="reset2()">重置</el-button>
                </div>

              </div>
            </el-form>
            <div class="market_content">
              <JNPF-table border v-loading="listLoading" :data="list" @sort-change='sortChange'
                :span-method="arraySpanMethod">
                <el-table-column prop="enterpriseName" label="单位名称" align="left"></el-table-column>
                <el-table-column prop="enterpriseCreditCode" label="信用代码"
                  align="left"></el-table-column>
                <el-table-column prop="enterpriseAddress" label="单位地址"
                  align="left"></el-table-column>
                <el-table-column prop="enterpriseStart" label="成立时间" align="left"></el-table-column>
                <el-table-column prop="registeredCapital" label="注册资本" align="left">
                  <template slot-scope="scope" v-if="scope.row.registeredCapital">
                    <JnpfNumber v-model="scope.row.registeredCapital" :thousands="false" />
                  </template>
                </el-table-column>
                <!--                <el-table-column prop="contactPerson" label="联系人" align="left"></el-table-column>
                              <el-table-column prop="contactInformation" label="联系方式" align="left"></el-table-column>
                              <el-table-column prop="email" label="电子邮箱" align="left"></el-table-column>-->
                <el-table-column prop="tableField107" label="产品信息" align="center">
                  <el-table-column prop="tableField107-child-first" width="1px"
                    label-class-name="table-child-first">
                    <template slot-scope="scope" v-if="!scope.row.top">
                      <div class="child-table-column">
                        <template v-if="!scope.row.tableField107Expand">
                          <tr v-for="(item, index) in scope.row.tableField107.slice(0, 2)"
                            class="child-table__row" :key="index">
                            <td class="td-child-first">
                              <div class="cell"></div>
                            </td>
                            <td class="td-flex-1">
                              <div class="cell">
                                {{ item.productName }}
                              </div>
                            </td>
                            <td class="td-flex-1">
                              <div class="cell">
                                {{ item.serviceIndustry }}
                              </div>
                            </td>
                            <td class="td-flex-1">
                              <div class="cell">
                                {{ item.productType }}
                              </div>
                            </td>
                          </tr>
                        </template>
                        <template v-if="scope.row.tableField107Expand">
                          <tr v-for="(item, index) in scope.row.tableField107"
                            class="child-table__row" :key="index">
                            <td class="td-child-first">
                              <div class="cell"></div>
                            </td>
                            <td class="td-flex-1">
                              <div class="cell">
                                {{ item.productName }}
                              </div>
                            </td>
                            <td class="td-flex-1">
                              <div class="cell">
                                {{ item.serviceIndustry }}
                              </div>
                            </td>
                            <td class="td-flex-1">
                              <div class="cell">
                                {{ item.productType }}
                              </div>
                            </td>
                          </tr>
                        </template>
                        <div class="expand-more-btn" v-if="scope.row.tableField107.length > 2">
                          <el-button v-if="scope.row.tableField107Expand" type="text"
                            @click="scope.row.tableField107Expand = !scope.row.tableField107Expand">隐藏部分
                          </el-button>
                          <el-button v-if="!scope.row.tableField107Expand" type="text"
                            @click="scope.row.tableField107Expand = !scope.row.tableField107Expand">加载更多
                          </el-button>
                        </div>
                      </div>
                    </template>
                  </el-table-column>
                  <el-table-column prop="tableField107-productName" label="产品名称" width="150" />
                  <el-table-column prop="tableField107-serviceIndustry" label="服务行业" width="150" />
                  <el-table-column prop="tableField107-productType" label="产品类别(大类)" width="150" />
                </el-table-column>
                <el-table-column label="操作" align="center" width="100">
                  <template slot-scope="scope">
                    <el-button type="text" @click="goDetail(scope.row.id)">详情
                    </el-button>
                  </template>
                </el-table-column>
              </JNPF-table>
              <div class="general_pagination">
                <span class="total">{{ `共 ${total} 项数据` }}</span>
                <pagination layout="sizes, prev, pager, next, jumper" :total="total"
                  :page.sync="listQuery.currentPage" :limit.sync="listQuery.pageSize"
                  :page-sizes="[50]" @pagination="initData" />
              </div>
            </div>
          </el-tab-pane>
        </el-tabs>
      </div>
    </div>
    <JNPF-Form v-if="formVisible" ref="JNPFForm" @refresh="refresh" />
    <ExportBox v-if="exportBoxVisible" ref="ExportBox" @download="download" />
    <ImportBox v-if="uploadBoxVisible" ref="UploadBox" @refresh="initData" />
    <Detail v-if="detailVisible" ref="Detail" @refresh="detailVisible = false" />
    <ToFormDetail v-if="toFormDetailVisible" ref="toFormDetail"
      @close="toFormDetailVisible = false" />
    <SuperQuery v-if="superQueryVisible" ref="SuperQuery" :columnOptions="superQueryJson"
      @superQuery="superQuery" />
    <Link />
    <Floor />
  </div>
</template>

<script>

import request from '@/utils/request'
import { mapGetters } from "vuex";
import { getDictionaryDataSelector } from '@/api/systemData/dictionary'
import JNPFForm from './form'
import Detail from './Detail'
import ExportBox from '@/components/ExportBox'
import ToFormDetail from '@/views/basic/dynamicModel/list/detail'
import { getDataInterfaceRes } from '@/api/systemData/dataInterface'
import { getConfigData } from '@/api/onlineDev/visualDev'
import { getDefaultCurrentValueUserIdAsync } from '@/api/permission/user'
import { getDefaultCurrentValueDepartmentIdAsync } from '@/api/permission/organize'
import columnList from './columnList'
import { thousandsFormat } from "@/components/Generator/utils/index"
import SuperQuery from '@/components/SuperQuery'
import superQueryJson from './superQueryJson'
import Floor from '@/views/login/component/Floor'
import Link from '@/views/login/component/Link'
import Header from '@/views/login/component/Header'
import Nav from '@/views/login/component/Nav'

export default {
  components: {
    JNPFForm,
    Detail,
    ExportBox, ToFormDetail, SuperQuery,
    Floor,
    Link,
    Header,
    Nav
  },
  data() {
    return {
      activeName: 'first',
      activeIndex: '3-2',
      keyword: '',
      expandsTree: true,
      refreshTree: true,
      toFormDetailVisible: false,
      expandObj: {},
      columnOptions: [],
      mergeList: [],
      exportList: [],
      columnList,

      showAll: false,
      superQueryVisible: false,
      superQueryJson,
      uploadBoxVisible: false,
      detailVisible: false,
      query: {
        enterpriseName: undefined,
        enterpriseCreditCode: undefined,
        enterpriseAddress: undefined,
        enterpriseStart: undefined,
        tableField107_productName: undefined,
        tableField107_serviceIndustry: undefined,
        tableField107_productType: undefined,
        tableField127_serverType: undefined,
      },
      treeProps: {
        children: 'children',
        label: 'fullName',
        value: 'id',
        isLeaf: 'isLeaf'
      },
      list: [],
      listLoading: true,
      total: 0,
      queryData: {

      },
      listQuery: {
        superQueryJson: '',
        currentPage: 1,
        pageSize: 50,
        sort: "desc",
        sidx: "creatortime",
      },
      formVisible: false,
      flowVisible: false,
      flowListVisible: false,
      flowList: [],
      exportBoxVisible: false,
      tableField107_serviceIndustryOptions: [{ "fullName": "汽车制造业", "id": "1" }, {
        "fullName": "轻工纺织业",
        "id": "2"
      }, { "fullName": "计算机、通信和其他电子设备制造业", "id": "3" }],
      tableField107_serviceIndustryProps: { "label": "fullName", "value": "id" },
      tableField107_productTypeOptions: [{ "fullName": "软件系统及SaaS化应用类", "id": "1" }, {
        "fullName": "基础设施类",
        "id": "2"
      }, { "fullName": "生产设备类", "id": "3" }],
      tableField107_productTypeProps: { "label": "fullName", "value": "id" },
      interfaceRes: {},
    }
  },
  computed: {
    ...mapGetters(['userInfo']),
    menuId() {
      return this.$route.meta.modelId || ''
    }
  },
  created() {
    this.handleClick();
    this.getColumnList();
    this.initSearchDataAndListData();
    this.queryData = JSON.parse(JSON.stringify(this.query))
  },
  methods: {
    handleClick(tab, event) {
      if (this.activeName == 'first') {
        this.query.tableField107_productName = null
        this.query.tableField107_serviceIndustry = null
        this.query.tableField107_productType = null
        this.query.tableField127_serverType = '试点城市细分行业数字化服务资源库服务商';
        this.search()
      } else {
        this.query.tableField107_productName = null
        this.query.tableField107_serviceIndustry = null
        this.query.tableField107_productType = null
        this.query.tableField127_serverType = '试点城市细分行业数字化服务后备资源库服务商';
        this.search()
      }
    },
    handleSelect(key, keyPath) {
    },
    redirectTologin() {
      this.$router.push({ path: '/login', query: { redirect: '/' } });
    },
    redirectToblogin() {
      window.open("/blogin");
    },
    redirectToJFY() {
      window.open("https://www.fjjfypt.com/jfy/home/index", "_blank");
    },
    goTo(path) {
      this.$router.push(path);
    },
    toDetail(defaultValue, modelId) {
      if (!defaultValue) return
      getConfigData(modelId).then(res => {
        if (!res.data || !res.data.formData) return
        let formData = JSON.parse(res.data.formData)
        formData.popupType = 'general'
        this.toFormDetailVisible = true
        this.$nextTick(() => {
          this.$refs.toFormDetail.init(formData, modelId, defaultValue)
        })
      })
    },
    toggleTreeExpand(expands) {
      this.refreshTree = false
      this.expandsTree = expands
      this.$nextTick(() => {
        this.refreshTree = true
        this.$nextTick(() => {
          this.$refs.treeBox.setCurrentKey(null)
        })
      })
    },
    filterNode(value, data) {
      if (!value) return true;
      return data[this.treeProps.label].indexOf(value) !== -1;
    },
    loadNode(node, resolve) {
      const nodeData = node.data
      const config = {
        treeInterfaceId: "",
        treeTemplateJson: []
      }
      if (config.treeInterfaceId) {
        //这里是为了拿到参数中关联的字段的值，后端自行拿
        if (config.treeTemplateJson && config.treeTemplateJson.length) {
          for (let i = 0; i < config.treeTemplateJson.length; i++) {
            const element = config.treeTemplateJson[i];
            element.defaultValue = nodeData[element.relationField] || ''
          }
        }
        //参数
        let query = {
          paramList: config.treeTemplateJson || [],
        }
        //接口
        getDataInterfaceRes(config.treeInterfaceId, query).then(res => {
          let data = res.data
          if (Array.isArray(data)) {
            resolve(data);
          } else {
            resolve([]);
          }
        })
      }
    },
    getColumnList() {
      // 没有开启权限
      this.columnOptions = this.transformColumnList(this.columnList)
    },
    transformColumnList(columnList) {
      let list = []
      for (let i = 0; i < columnList.length; i++) {
        const e = columnList[i];
        if (!e.prop.includes('-')) {
          list.push(e)
        } else {
          let prop = e.prop.split('-')[0]
          let label = e.label.split('-')[0]
          let vModel = e.prop.split('-')[1]
          let newItem = {
            align: "center",
            jnpfKey: "table",
            prop,
            label,
            children: []
          }
          e.vModel = vModel
          if (!this.expandObj.hasOwnProperty(`${prop}Expand`)) this.$set(this.expandObj, `${prop}Expand`, false)
          if (!list.some(o => o.prop === prop)) list.push(newItem)
          for (let i = 0; i < list.length; i++) {
            if (list[i].prop === prop) {
              list[i].children.push(e)
              break
            }
          }
        }
      }
      this.getMergeList(list)
      this.getExportList(list)
      return list
    },
    arraySpanMethod({ column }) {
      for (let i = 0; i < this.mergeList.length; i++) {
        if (column.property == this.mergeList[i].prop) {
          return [this.mergeList[i].rowspan, this.mergeList[i].colspan]
        }
      }
    },
    getMergeList(list) {
      let newList = JSON.parse(JSON.stringify(list))
      newList.forEach(item => {
        if (item.children && item.children.length) {
          let child = {
            prop: item.prop + '-child-first'
          }
          item.children.unshift(child)
        }
      })
      newList.forEach(item => {
        if (item.children && item.children.length) {
          item.children.forEach((child, index) => {
            if (index == 0) {
              this.mergeList.push({
                prop: child.prop,
                rowspan: 1,
                colspan: item.children.length
              })
            } else {
              this.mergeList.push({
                prop: child.prop,
                rowspan: 0,
                colspan: 0
              })
            }
          })
        } else {
          this.mergeList.push({
            prop: item.prop,
            rowspan: 1,
            colspan: 1
          })
        }
      })
    },
    getExportList(list) {
      let exportList = []
      for (let i = 0; i < list.length; i++) {
        if (list[i].jnpfKey === 'table') {
          for (let j = 0; j < list[i].children.length; j++) {
            exportList.push(list[i].children[j])
          }
        } else {
          exportList.push(list[i])
        }
      }
      this.exportList = exportList
    },
    goDetail(id) {
      this.detailVisible = true
      this.$nextTick(() => {
        this.$refs.Detail.init(id)
      })
    },
    sortChange({ column, prop, order }) {
      this.listQuery.sort = order == 'ascending' ? 'asc' : 'desc'
      this.listQuery.sidx = !order ? '' : prop
      this.initData()
    },
    async initSearchDataAndListData() {
      await this.initSearchData()
      this.initData()
    },
    //初始化查询的默认数据
    async initSearchData() {
    },
    initData() {
      this.listLoading = true;
      let _query = {
        ...this.listQuery,
        ...this.query,
        keyword: this.keyword,
        dataType: 0,
        menuId: this.menuId,
        moduleId: '510204237989281797',
        type: 1,
      };
      request({
        url: `/api/example/Fz_supply_market/getList`,
        method: 'post',
        data: _query
      }).then(res => {
        var _list = res.data.list;
        this.list = _list.map(o => ({
          ...o,
          ...this.expandObj,
        }))
        this.total = res.data.pagination.total
        this.listLoading = false
      })
    },
    handleDel(id) {
      this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
        type: 'warning'
      }).then(() => {
        request({
          url: `/api/example/Fz_supply_market/${id}`,
          method: 'DELETE'
        }).then(res => {
          this.$message({
            type: 'success',
            message: res.msg,
            onClose: () => {
              this.initData()
            }
          });
        })
      }).catch(() => {
      });
    },
    handelUpload() {
      this.uploadBoxVisible = true
      this.$nextTick(() => {
        this.$refs.UploadBox.init("", "example/Fz_supply_market")
      })
    },
    openSuperQuery() {
      this.superQueryVisible = true
      this.$nextTick(() => {
        this.$refs.SuperQuery.init()
      })
    },
    superQuery(queryJson) {
      this.listQuery.superQueryJson = queryJson
      this.listQuery.currentPage = 1
      this.initData()
    },
    addOrUpdateHandle(row, isDetail) {
      let id = row ? row.enterprisecreditcode : ""
      this.formVisible = true
      this.$nextTick(() => {
        this.$refs.JNPFForm.init(id, isDetail, this.list)
      })
    },
    exportData() {
      this.exportBoxVisible = true
      this.$nextTick(() => {
        this.$refs.ExportBox.init(this.exportList)
      })
    },
    download(data) {
      let query = { ...data, ...this.listQuery, ...this.query, menuId: this.menuId }
      request({
        url: `/api/example/Fz_supply_market/Actions/Export`,
        method: 'post',
        data: query
      }).then(res => {
        if (!res.data.url) return
        this.jnpf.downloadFile(res.data.url)
        this.$refs.ExportBox.visible = false
        this.exportBoxVisible = false
      })
    },
    search() {
      this.listQuery.currentPage = 1
      this.listQuery.pageSize = 50
      this.listQuery.sort = "desc"
      this.listQuery.sidx = "creatortime"
      this.initData()
    },
    refresh(isrRefresh) {
      this.formVisible = false
      if (isrRefresh) this.reset()
    },
    reset() {
      this.query = JSON.parse(JSON.stringify(this.queryData))
      this.search()
    },
    reset1() {
      this.query.tableField107_productName = null
      this.query.tableField107_serviceIndustry = null
      this.query.tableField107_productType = null
      this.query.tableField127_serverType = '试点城市细分行业数字化服务资源库服务商'
      this.search()
    },
    reset2() {
      this.query.tableField107_productName = null
      this.query.tableField107_serviceIndustry = null
      this.query.tableField107_productType = null
      this.query.tableField127_serverType = '试点城市细分行业数字化服务后备资源库服务商'
      this.search()
    },
    colseFlow(isrRefresh) {
      this.flowVisible = false
      if (isrRefresh) this.reset()
    },
  }
}
</script>

<style lang="scss" scoped>
#main {
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: 0.1fr 0.1fr 2.8fr;
  gap: 0px 0px;
  grid-template-areas:
    'head head head head'
    'nav nav nav nav'
    'market market market market'
    'friendship-link friendship-link friendship-link friendship-link'
    'footer footer footer footer';
}

.market {
  grid-area: market;
  background-color: #ffffff;

  // ::v-deep .JNPF-flex-main {
  //   height: calc(100% - 70px);
  // }
  > img {
    width: 100%;
  }
  .market_main {
    // min-height: 700px;
    width: 1400px;
    margin: 0 auto;
    .market_request {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin: 22px 0 22px 0;
      .market_request_left {
        display: flex;
        align-items: center;
      }
      ::v-deep .el-form-item {
        margin: 0;
        margin-right: 32px;
      }
    }
    .market_content {
    }
  }
}
.general_pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border: 1px solid #dcdfe6;
  padding: 10px 12px;
  .total {
    color: #00000099;
  }
  .pagination-container {
    margin: 0;
    padding: 0;
  }
}
.tags {
  // margin-left: 10px;
  .tag {
    padding: 2px 8px;
    font-size: 14px;
    margin: 0 10px 10px 0;
    border-radius: 3px;
    font-weight: 400;
    font-size: 12px;
  }
  .blue {
    color: #1890ff;
    border: 1px solid #1890ff;
    background: #f0f8ff;
  }
  .purple {
    color: #aa60ff;
    border: 1px solid #aa60ff;
    background: #faf6ff;
  }
}
.el-tabs {
  ::v-deep .el-tabs__header.is-top {
    position: relative;
    border: 0px;
  }
  ::v-deep .el-tabs__nav.is-top {
    display: flex;
    border: 0px;
  }
  ::v-deep .el-tabs__item.is-top.is-active {
    color: white;
    background: #1890ff;
  }
  ::v-deep .el-tabs__item {
    color: #999999;
    background: #fff;
    width: 400px;
    height: 50px;
    display: flex;
    font-size: 17px;
    font-weight: 700;
    justify-content: center;
    align-items: center;
  }
  ::v-deep .el-tabs__nav-scroll {
    display: flex;
    justify-content: center;
  }
  ::v-deep .el-tabs__active-bar {
    display: none;
  }
  ::v-deep .el-tabs__nav-wrap::after {
    height: 0px;
  }
}
::v-deep .el-tabs__header.is-top {
  border-bottom: 1px solid #3d3d3d50;
  padding: 0 10px;
}
::v-deep .el-tabs__header {
  margin: 0;
}
::v-deep .el-tabs__content {
  height: calc(100% - 40px);
  position: relative;
}
::v-deep .el-tab-pane {
  height: 100%;
}
</style>
